package com.qingzhuge.pay.service.impl;

import com.qingzhuge.pay.dao.SysOrderRefundDao;
import com.qingzhuge.pay.entity.SysOrderRefund;
import com.qingzhuge.pay.service.ISysOrderRefundService;
import com.qingzhuge.service.BasePkLongServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

/**
 * @author : zero.xiao
 * @description :
 * @date : 2018/11/15 0015 下午 18:38
 * @modified :
 * @since :
 */
@Service
public class SysOrderRefundServiceImpl extends BasePkLongServiceImpl<SysOrderRefundDao, SysOrderRefund>
        implements ISysOrderRefundService {
    @Override
    public SysOrderRefund findByOutTradeNo(String outTradeNo) {
        if (StringUtils.isEmpty(outTradeNo)){
            return null;
        }
        return baseDao.findByOutTradeNo(outTradeNo);
    }

    @Override
    public SysOrderRefund findByTransactionId(String transactionId) {
        if (StringUtils.isEmpty(transactionId)){
            return null;
        }
        return baseDao.findByTransactionId(transactionId);
    }
}
